package com.specialized.background.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.specialized.common.core.annotation.Excel;
import com.specialized.common.core.web.domain.BaseEntity;

/**
 * 代金卷模板对象 coupon_template
 *
 * @author djh
 * @date 2024-07-30
 */
public class CouponTemplate extends BaseEntity
{
    private static final long serialVersionUID=1L;

    /** 代金卷模板id */
    private Long couponId;

    /** 优惠力度 */
    @Excel(name = "优惠力度")
    private BigDecimal couponAmount;

    /** 优惠卷描述 */
    @Excel(name = "优惠卷描述")
    private String couponDescription;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Long isDelete;

    @Excel(name = "库存")
    private Long count;

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public void setCouponId(Long couponId)
    {
        this.couponId = couponId;
    }

    public Long getCouponId()
    {
        return couponId;
    }
    public void setCouponAmount(BigDecimal couponAmount)
    {
        this.couponAmount = couponAmount;
    }

    public BigDecimal getCouponAmount()
    {
        return couponAmount;
    }
    public void setCouponDescription(String couponDescription)
    {
        this.couponDescription = couponDescription;
    }

    public String getCouponDescription()
    {
        return couponDescription;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("couponId",getCouponId())
                .append("couponAmount",getCouponAmount())
                .append("couponDescription",getCouponDescription())
                .append("startTime",getStartTime())
                .append("endTime",getEndTime())
                .append("isDelete",getIsDelete())
                .append("createTime",getCreateTime())
                .append("updateTime",getUpdateTime())
                .append("count",getCount())
                .toString();
    }



}
